package com.cg.slms.service;

import java.util.List;

import com.cg.slms.dao.IMerchandiseDao;
import com.cg.slms.domain.Merchandise;

public class MerchandiseService implements IMerchandiseService {
	private IMerchandiseDao merchandiseDao;
	public List<Merchandise> findMerchandise(Merchandise merchandise) {
		return merchandiseDao.findMerchandise(merchandise);
	}
	public IMerchandiseDao getMerchandiseDao() {
		return merchandiseDao;
	}
	public void setMerchandiseDao(IMerchandiseDao merchandiseDao) {
		this.merchandiseDao = merchandiseDao;
	}
	@Override
	public Merchandise findMerchandiseById(String id) {
		// TODO Auto-generated method stub
		return merchandiseDao.findMerchandiseById(id);
	}

	@Override
	public boolean deleteMerchandiseById(String id) {
		// TODO Auto-generated method stub
		return merchandiseDao.deleteMerchandiseById(id);
	}
	@Override
	public boolean addMerchandise(Merchandise merchandise) {
		// TODO Auto-generated method stub
		return merchandiseDao.addMerchandise(merchandise);
	}

	@Override
	public boolean updateMerchandise(Merchandise merchandise) {
		// TODO Auto-generated method stub
		return merchandiseDao.updateMerchandise(merchandise);
	}
}
